package com.woniu.service.impl;

import com.woniu.dao.ProductionDao;
import com.woniu.entity.Production;
import com.woniu.service.ProductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 王汇麒  <br/>
 * Date: 2022/9/21:18:12  <br/>
 * Description:
 */
@Service
public class ProductionServiceImpl implements ProductionService{
    @Autowired
    private ProductionDao productionDao;
    @Override
    public List<Production> selectProductionList(Production production) {
        return productionDao.selectProductionList(production);
    }

    @Override
    public int enableProductionById(Integer productionId) {
        return productionDao.enableProductionById(productionId);
    }

    @Override
    public int disableProductionById(Integer productionId) {
        return productionDao.disableProductionById(productionId);
    }
}
